package mark.tom.gear.base.utils

import timber.log.Timber
import timber.log.Timber.DebugTree

/**
 * @Description: 日志工具
 * @Author: ttmk110@163.com
 * @Package: mark.tom.gear.base.utils
 * @Date: 2021/1/14
 * @Copyright: 版权归 Mark 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date: </ModifyLog>
 */
object LogUtil {

    fun init() {
        // init Timber
        Timber.plant(DebugTree())
    }

    fun v(message: String, vararg args: Any?) {
        Timber.v(message, *args)
    }

    fun d(message: String, vararg args: Any?) {
        Timber.d(message, *args)
    }

    fun i(message: String, vararg args: Any?) {
        Timber.i(message, *args)
    }

    fun e(message: String, vararg args: Any?) {
        Timber.e(message, *args)
    }

    fun e(t: Throwable?) {
        Timber.e(t)
    }
}